// 登陆管理后台
const config = require('./config')
const puppeteer = require('puppeteer'); 


function autoLogin () {
    return new Promise(async (resolve, reject) => {
        const browser = await puppeteer.launch({
            headless: false,
            // 视口大小
            defaultViewport: {
                width: 1920,
                height: 1080
            },
            // 调节窗口大小
            args: [
                '--window-size=1920,1080'
            ]
        })
        const page = await browser.newPage()

        await page.goto(`http://${config.env}.ykt100.com`)
    })
}

autoLogin()
